﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cmsservice.Entity
{
    public class DataModel
    {
        private string _url;
        /// <summary>
        /// url
        /// </summary>
        public string url
        {
            get { return _url; }
            set { _url = value; }
        }

        private List<string> _newsId;
        /// <summary>
        /// 新闻ID
        /// </summary>
        public List<string> NewsId
        {
            get { return _newsId; }
            set { _newsId = value; }
        }
    }

    public class EMNewsInfoList
    {
        private string _url;
        /// <summary>
        /// url
        /// </summary>
        public string url
        {
            get { return _url; }
            set { _url = value; }
        }

        private List<EMNewsInfoModel> _newsInfo;
        /// <summary>
        /// 简单资讯
        /// </summary>
        public List<EMNewsInfoModel> NewsInfo
        {
            get { return _newsInfo; }
            set { _newsInfo = value; }
        }
    }

    public class EMNewsInfoModel
    {
        string _newsId, _newsTitle, _newsContent, _publDate, _ZXType, _createDate;

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateDate
        {
            get { return _createDate; }
            set { _createDate = value; }
        }

        /// <summary>
        /// 资讯类型
        /// </summary>
        public string ZXType
        {
            get { return _ZXType; }
            set { _ZXType = value; }
        }

        /// <summary>
        /// 资讯内容
        /// </summary>
        public string NewsContent
        {
            get { return _newsContent; }
            set { _newsContent = value; }
        }

        /// <summary>
        /// id
        /// </summary>
        public string NewId
        {
            get { return _newsId; }
            set { _newsId = value; }
        }

        /// <summary>
        /// 发布时间
        /// </summary>
        public string PublDate
        {
            get { return _publDate; }
            set { _publDate = value; }
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string NewsTitle
        {
            get { return _newsTitle; }
            set { _newsTitle = value; }
        }
    }

    /// <summary>
    /// 获取环球股指，外汇，大宗商品
    /// </summary>
    public class EMGZWHSPPriceModel
    {
        private string _name;
        /// <summary>
        /// 名称
        /// </summary>
        public string name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _zxz;
        /// <summary>
        /// 最新值
        /// </summary>
        public string zxz
        {
            get { return _zxz; }
            set { _zxz = value; }
        }
        private string _zdf;
        /// <summary>
        /// 涨跌幅
        /// </summary>
        public string zdf
        {
            get { return _zdf; }
            set { _zdf = value; }
        }
    }

    /// <summary>
    /// 股市天气
    /// </summary>
    public class WeatherData
    {
        public string ID
        {
            get;
            set;
        }
        public DateTime date
        {
            get;
            set;
        }
        public string sdate
        {
            set
            {
                date = date;
            }
            get { return date.ToString("yyyyMMdd"); }
        }

        public string time
        {
            set
            {
                date = date;
            }
            get { return date.ToString("HHmm"); }
        }
        string _weather;
        public string weather
        {
            get { return _weather; }
            set { _weather = value; }
        }
        string _content;

        public string content
        {
            get { return _content; }
            set { _content = value; }
        }
        string _posi;

        public string posi
        {
            get { return _posi; }
            set { _posi = value; }
        }
        string _short_strategy;

        public string short_strategy
        {
            get { return _short_strategy; }
            set { _short_strategy = value; }
        }
        string _long_strategy;

        public string long_strategy
        {
            get { return _long_strategy; }
            set { _long_strategy = value; }
        }

        string _bkqr;

        public string bkqr
        {
            get { return _bkqr; }
            set { _bkqr = value; }
        }
    }
}
